for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Core\Selector;
* Composite Selector Class.
* @author Karel Osorio Ramírez <[email protected]>
class Composite extends Selector
{
* @var SelectorInterface
protected $valueSelector;
protected $applySelector;
* @param SelectorInterface $valueSelector
* @param SelectorInterface $applySelector
public function __construct(SelectorInterface $valueSelector, SelectorInterface $applySelector)
$this->valueSelector = $valueSelector;
$this->applySelector = $applySelector;
}
* @return \Cubiche\Core\Selector\SelectorInterface
public function valueSelector()
return $this->valueSelector;
public function applySelector()
return $this->applySelector;
* {@inheritdoc}
public function apply($value)
return $this->applySelector->apply($this->valueSelector->apply($value));