Permalink
Browse files

Changed createSelector -> addSelector. Added erroronmissingdir argume…

…nt to fileset/dirset. Updated grammer file. (#664)
  • Loading branch information...
1 parent db553bb commit 2f8129aa5a66eecc9462575da7a5e4720b784f0f @siad007 siad007 committed with mrook Feb 7, 2017
@@ -267,153 +267,164 @@ public function appendSelector(FileSelector $selector)
* add a "Select" selector entry on the selector list
* @return SelectSelector
*/
- public function createSelector()
+ public function addSelector(SelectSelector $selector)
{
- return $this->fileset->createSelector();
+ return $this->fileset->addSelector($selector);
}
/**
* add an "And" selector entry on the selector list
* @return AndSelector
*/
- public function createAnd()
+ public function addAnd(AndSelector $selector)
{
- return $this->fileset->createAnd();
+ return $this->fileset->addAnd($selector);
}
/**
* add an "Or" selector entry on the selector list
* @return OrSelector
*/
- public function createOr()
+ public function addOr(OrSelector $selector)
{
- return $this->fileset->createOr();
+ return $this->fileset->addOr($selector);
}
/**
* add a "Not" selector entry on the selector list
* @return NotSelector
*/
- public function createNot()
+ public function addNot(NotSelector $selector)
{
- return $this->fileset->createNot();
+ return $this->fileset->addNot($selector);
}
/**
* add a "None" selector entry on the selector list
* @return NoneSelector
*/
- public function createNone()
+ public function addNone(NoneSelector $selector)
{
- return $this->fileset->createNone();
+ return $this->fileset->addNone($selector);
}
/**
* add a majority selector entry on the selector list
* @return MajoritySelector
*/
- public function createMajority()
+ public function addMajority(MajoritySelector $selector)
{
- return $this->fileset->createMajority();
+ return $this->fileset->addMajority($selector);
}
/**
* add a selector date entry on the selector list
* @return DateSelector
*/
- public function createDate()
+ public function addDate(DateSelector $selector)
{
- return $this->fileset->createDate();
+ return $this->fileset->addDate($selector);
}
/**
* add a selector size entry on the selector list
* @return SizeSelector
*/
- public function createSize()
+ public function addSize(SizeSelector $selector)
{
- return $this->fileset->createSize();
+ return $this->fileset->addSize($selector);
}
/**
* add a selector filename entry on the selector list
* @return FilenameSelector
*/
- public function createFilename()
+ public function addFilename(FilenameSelector $selector)
{
- return $this->fileset->createFilename();
+ return $this->fileset->addFilename($selector);
}
/**
* add an extended selector entry on the selector list
* @return ExtendSelector
*/
- public function createCustom()
+ public function addCustom(ExtendSelector $selector)
{
- return $this->fileset->createCustom();
+ return $this->fileset->addCustom($selector);
}
/**
* add a contains selector entry on the selector list
- * @return ContainsSelector
*/
- public function createContains()
+ public function addContains(ContainsSelector $selector)
{
- return $this->fileset->createContains();
+ return $this->fileset->addContains($selector);
}
/**
* add a present selector entry on the selector list
- * @return PresentSelector
*/
- public function createPresent()
+ public function addPresent(PresentSelector $selector)
{
- return $this->fileset->createPresent();
+ return $this->fileset->addPresent($selector);
}
/**
* add a depth selector entry on the selector list
- * @return DepthSelector
*/
- public function createDepth()
+ public function addDepth(DepthSelector $selector)
{
- return $this->fileset->createDepth();
+ return $this->fileset->addDepth($selector);
}
/**
* add a depends selector entry on the selector list
- * @return DependSelector
*/
- public function createDepend()
+ public function addDepend(DependSelector $selector)
{
- return $this->fileset->createDepend();
+ return $this->fileset->addDepend($selector);
}
/**
* add a readable selector entry on the selector list
- * @return ReadableSelector
*/
- public function createReadable()
+ public function addReadable(ReadableSelector $selector)
{
- return $this->fileset->createReadable();
+ return $this->fileset->addReadable($selector);
}
/**
* add a writable selector entry on the selector list
- * @return WritableSelector
*/
- public function createWritable()
+ public function addWritable(WritableSelector $selector)
{
- return $this->fileset->createWritable();
+ return $this->fileset->addWritable($selector);
}
/**
* add a different selector entry on the selector list
- * @return DifferentSelector
*/
- public function createDifferent()
+ public function addDifferent(DifferentSelector $selector)
{
- return $this->fileset->createDifferent();
+ return $this->fileset->addDifferent($selector);
+ }
+
+ /**
+ * add a type selector entry on the selector list
+ * @param TypeSelector $selector
+ */
+ public function addType(TypeSelector $selector)
+ {
+ return $this->fileset->addType($selector);
+ }
+
+ /**
+ * add a contains selector entry on the selector list
+ * @param ContainsRegexpSelector $selector
+ */
+ public function addContainsRegexp(ContainsRegexpSelector $selector)
+ {
+ return $this->fileset->addContainsRegexp($selector);
}
/**
Oops, something went wrong.

0 comments on commit 2f8129a

Please sign in to comment.