コード例 #1
0
 public function __construct(Resource $resource)
 {
     $this->resource = $resource;
     $this->pathname = (string) $resource->getPathname();
 }
コード例 #2
0
ファイル: Resource.php プロジェクト: andreaswarnaar/openl10n
 public function __construct(ResourceModel $resource)
 {
     $this->id = $resource->getId();
     $this->project = (string) $resource->getProject()->getSlug();
     $this->pathname = (string) $resource->getPathname();
 }